package com.k8.cluster.builder;

import com.k8.cluster.clusterImpl.FailOverCluster;
import com.k8.rpc.cluster.Cluster;
import com.k8.rpc.cluster.ClusterBuilder;
import com.k8.rpc.cluster.loadBalance.LoadBalance;
import com.k8.rpc.url.URL;

/**
 * @Author: k8
 * @CreateTime: 2025-08-16
 * @Version: 1.0
 */
public class FailOverClusterBuilder implements ClusterBuilder {
    @Override
    public Cluster build(URL url, LoadBalance loadBalance) {
        FailOverCluster failoverCluster = new FailOverCluster();
        failoverCluster.setBalance(loadBalance);
        return failoverCluster;
    }
}
